<template>
	<view class="content">
		<view class="app-title ac">
			<view class="fl" @click="back"><image class="back" src="/static/img/back.png"></image></view>设备详情
		</view>
		
		<view class="top-bg"></view>
		
		<view class="detail">
			<u-cell-group>
				<u-cell-item title="设备名称:" :value="detail.equName" :arrow="false"></u-cell-item>
				<u-cell-item title="设备类型:" :value="detail.equTypeName" :arrow="false"></u-cell-item>
				<u-cell-item title="设备型号:" :value="detail.equModel" :arrow="false"></u-cell-item>
				<u-cell-item title="上道厂家:" :value="detail.factory" :arrow="false"></u-cell-item>
				<u-cell-item title="上道时间:" :value="detail.sdTime" :arrow="false"></u-cell-item>
				<u-cell-item title="所在车站:" value="" :arrow="false"></u-cell-item>
				<u-cell-item title="所属机构:" :value="detail.orgName" :arrow="false"></u-cell-item>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
export default{
	data() {
		return {
			id : '',
			detail : ''
		}
	},
	onLoad(options){
		this.id = options.id;
	},
	created() {
		this.initDetail();
	},
	methods:{
		back() {
			uni.navigateBack();
		},
		initDetail() {
			this.fetch('GET',this.baseUrl()+'/home/getEqtDetail',{eqtid:this.id},true).then((res)=>{
				if(res.returnCode == 1 && res.data != null) this.detail = res.data;
			})
		}
	}
}
</script>

<style scoped>
	.van-cell{
		padding: 15px 16px;
	}
	.van-cell__value{
		text-align: right;
	}
</style>
